class ToolTips extends WatcherView {
    public tipsLabel: eui.Label;
    private message: string = "";
    public constructor() {
        super();
        this.skinName = ToolTipsSkin;
        this.name = "ToolTips";

        this.right = 0;
        this.left = 0;
    }

    onEnter() {
        super.onEnter();
        this.refreshView();
    }

    onExit() {
        super.onExit();
    }

    refreshView(message = null) {
        if (message) {
            this.message = message;
        }
        if (this.tipsLabel) {
            this.tipsLabel.text = this.message;
        }
    }
}
//wxgame必须添加
window["ToolTips"] = ToolTips;